﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Drawing;
using System.Drawing.Drawing2D;
using uz.control.CustomControl;

namespace uz.control.IPO
{
    public class IPOInput : TNB_Label
    {
        public IPOInput()
        {
            ToolBar.AddCommand(CMD_ADD_CHILD_STR, "添加字段（F5）");
        }

        public override string Text
        {
            get
            {
                string str = "Input（输入）";
                str +="(" + (Nodes.Count) +")";
                return str;
            }
        }

        public override void Edit()
        {
            
        }

        public override UzTreeNode AddChild()
        {
            IPOField node = new IPOField();
            Nodes.Add(node);
            node.IsEdit = true;

            if (IsExpanded == false)
            {
                Expand();
            }

            return node;
        }
    }
}
